package practice;

import java.util.*;

public class practice01 {

	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
        System.out.println("Please input a num:");
        int num=Integer.parseInt(scanner.nextLine());
        for (int i=2;i<num;i++)
        {
            if (num%i==0)
            {
                System.out.println(i);
                System.out.println("num is not a prime number");
                return;
            }
        }
        System.out.println("num is a prime number");
	}

}
